package pe.gob.reniec.cel.service;

import javax.jws.WebService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pe.gob.reniec.cel.dao.PersonaDao;
import pe.gob.reniec.cel.model.Persona;

/**
 *
 * @author Lennon Shimokawa
 */
@Service("personaService")
@WebService
@Transactional
public class PersonaServiceImpl implements PersonaService {

    private static final Logger logger = Logger.getLogger(PersonaServiceImpl.class);
    @Autowired
    private PersonaDao personaDao;

    public Persona consultarPorDni(String dni) {
        logger.debug("Inicio consultarPorDni");
        return personaDao.consultarPorDni(dni);
    }
}
